//
//  AppDelegate.m
//  <19.0>粘贴板和Nil-Targeted Actions
//
//  Created by chen on 16/9/19.
//  Copyright © 2016年 tyrad. All rights reserved.
//

#import "AppDelegate.h"


static NSString * const ZOCCacheControllerDidClearCacheNotification = @"ZOCCacheControllerDidClearCacheNotification";
static const CGFloat ZOCImageThumbnailHeight = 50.0f;


@interface AppDelegate ()

@property (weak) IBOutlet NSWindow *window;
@end

@implementation AppDelegate



- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    
    //返回NSPasteboard对象，可以实现复制粘贴
    NSPasteboard *pBoard = [NSPasteboard generalPasteboard];
    
    //返回指定名称的粘贴板
    NSPasteboard *pBoardWithName = [NSPasteboard pasteboardWithName:NSGeneralPboard]; 
    //APPKIT_EXTERN NSString *NSGeneralPboard;
    //APPKIT_EXTERN NSString *NSFontPboard;
    //APPKIT_EXTERN NSString *NSRulerPboard;
    //APPKIT_EXTERN NSString *NSFindPboard;
    //APPKIT_EXTERN NSString *NSDragPboard;
    
    //清除粘贴板上的内容 ,返回清除的个数
    NSInteger count = [pBoard clearContents];
    
    #pragma unused(count)
  
    
    //往粘贴板上写对象
    
    //[pBoard writeObjects:<#(nonnull NSArray<id<NSPasteboardWriting>> *)#>];
    
    //[pBoard readObjectsForClasses:<#(nonnull NSArray<Class> *)#> options:<#(nullable NSDictionary<NSString *,id> *)#>]
    
    
    

}







- (void)applicationWillTerminate:(NSNotification *)aNotification {
    // Insert code here to tear down your application
}


















@end






